package 二叉树;

public class Solution8 {
    //https://www.nowcoder.com/practice/a9d0ecbacef9410ca97463e4a5c83be7
    public TreeNode Mirror (TreeNode pRoot) {
        if (pRoot == null) {
            return null;
        }
        TreeNode tmp = pRoot.left;
        pRoot.left = pRoot.right;
        pRoot.right = tmp;
        Mirror(pRoot.left);
        Mirror(pRoot.right);
        return pRoot;
    }
}
